<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h2>{{message}}</h2>
      <img v-bind:src="imgURL" alt="" />
      <a v-bind:href="aHref">百度一下</a>

      <!-- 简写 -->
      <img :src="imgURL" alt="" />
      <a :href="aHref">百度一下</a>
    </div>
    <script src="../vue.js"></script>

    <script>
      const app = new Vue({
        el: "#app", //用于挂载要管理的元素
        data: {
          message: "hello",
          imgURL:
            "https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png",
          aHref: "http://www.baidu.com",
        },
      });
    </script>
  </body>
</html>
